home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_usrdoc / PPPSETUP / PPPSETUP.{__ < prev    next >
Text File  |  1999-09-17  |  8KB  |  233 lines

  1. ==============================================================================
  2. PPPsetup.v.1.98 by Kent Robotti <robotti@erols.com> (2/22/98)
  3.  
  4. This README and the lsm file are included in pppsetup-1.98.tar.gz.
  5. ==============================================================================
  6.  
  7. PPPsetup is a bash shell script to help you in creating a chat script, for
  8. establising a PPP connection to a internet service provider.
  9.  
  10. There's support in pppsetup for creating pap, chap, ms-chap, and callback 
  11. scripts, as well as the standard chat scripts, i have no experience with 
  12. callback or ms-chap, so that part of pppsetup is likely to be incorrect 
  13. or less than correct, you should get a recent version off chat and pppd 
  14. for callback and or ms-chap support, ppp-2.3.3 or later.
  15.  
  16. Most if not all versions of 'pppd' that come with linux distributions
  17. will not have 'ms-chap' or 'callback' support, if you require 'ms-chap'
  18. or 'callback' support you usally have to compile the ppp-2.?.? package 
  19. yourself and include support for them.
  20.  
  21. MS-CHAP is commonly used by windows NT RAS servers...
  22.  
  23. To establish a PPP connection, you need to have networking and
  24. ppp support compiled in your kernel or as a module.
  25.  
  26. Most if not all linux distributions will have ppp in the kernel 
  27. or as a module.
  28.  
  29. ~# dmesg | grep -i ppp    <-To see if you have ppp compiled in the kernel.)
  30. PPP: version 2.?.?        <-You should see this.)
  31.  
  32. Or if you have ppp compiled as a module you should have this.
  33.  
  34. /lib/modules/kernel-version/net/ppp.o
  35. /lib/modules/kernel-version/net/slhc.o
  36.  
  37. ~# depmod -a
  38.  # modprobe slhc
  39.  # modprobe ppp
  40.  
  41. You also need the programs 'pppd' & 'chat' on your system.
  42. These will be part of any linux distribution in the ppp-2.?.? package.
  43.  
  44. ~# man pppd
  45.  # man chat
  46.  
  47. PPPsetup-1.86 includes a compiled elf version of the program 'chat' 
  48. from ppp-2.3.3.
  49.  
  50. Put the program 'chat' that comes with pppsetup in the /usr/sbin
  51. directory.
  52.  
  53. If you have 'chat' from ppp-2.3.3 or later, there's no need to install 
  54. the one with pppsetup.
  55.  
  56. You also need the 'dialog' program on your system.
  57.  
  58. ~# dialog           <-To see if you have 'dialog' on your system.) 
  59. command not found   <-You don't have it.)
  60.  
  61. You can get a compiled elf version of 'dialog' from:
  62.  
  63. ftp://ftp.tux.org/pub/people/kent-robotti "dialog-0.9a.ELF.tar.gz"
  64.  
  65. You can put pppsetup in /usr/sbin usr/bin etc.
  66.  
  67. There's a script called 'ppp-off' included with pppsetup, you should
  68. put it in the /usr/sbin directory. 
  69.  
  70. There's also a ppp-compile.txt included with pppsetup,
  71. it gives you guidance in compiling ppp-2.?.?.
  72.  
  73. ~# pppsetup       <-Create chat script to make the PPP connection.)
  74.  
  75. Just answer the questions and take a look at /etc/ppp/pppsetup.txt when 
  76. you're done.
  77.  
  78. ~# ppp-go         <-Make PPP connection, print messages to screen.)
  79. ~# ppp-go -q      <-Make PPP connection, do not print messages to screen.)
  80.             
  81. ~# ppp-off        <-To end the ppp0 connection.)
  82.  # ppp-off ppp1   <-If it were on ppp1 etc.)
  83.  
  84. Now see if you're connected.
  85.  
  86. ~# ftp lynx etc.
  87.  # ping foo.boo.com   <-Ping your internet service provider.)
  88.  # whois or fwhois foo.boo.com
  89.  
  90. Or from X windows in a xterm...
  91.  
  92. ~# startx
  93.  # ppp-go 
  94.  # netscape etc.
  95.  
  96. You can run 'ifconfig' anytime to see if you're PPP connected.
  97.  
  98. ~# ifconfig
  99.  
  100. ppp0      Link encap:Point-to-Point Protocol  
  101.           inet addr:105.207.127.86  P-t-P:205.252.116.61  Mask:255.0.0.0
  102.  
  103. PPP-2.3.0 and later has a demand dialing option, you can use it this way,
  104. the options file for demand dialing will be /etc/ppp/options.demand.
  105.  
  106. Start ppp-go -d, pppd will just stay in the background until you try 
  107. to connect to some site, then pppd will dial your service provider and 
  108. make the ppp connection.
  109.  
  110. ~# ppp-go -d        <-Start pppd this way for demand dialing.)
  111.  #                  <-It should drop you back to #.)
  112.            
  113. ~# ftp ftp.funet.fi               <-Pppd will start dialing.)             
  114.  # lynx http://www.foo.com etc.   <-Pppd will start dialing.)
  115.  # fetchmail                      <-Pppd will start dialing etc.)
  116.  # ppp-off -d                     <-To end and restart demand connection.)
  117.  # ppp-off ppp1 -d                <-If it were on ppp1 etc.)
  118.    
  119. Use 'ppp-off' to terminate pppd, use 'ppp-off -d' to terminate and
  120. restart pppd in demand dialing mode.
  121.  
  122. Usally if you add W1 or S95=46 to the modem init string the modem will 
  123. give the DCE = CARRIER speed when you connect, look at your modem
  124. manual to see what command will make your modem report the DCE =
  125. CARRIER speed.
  126.  
  127. Examples: AT&FW1 AT&FS95=46
  128.   
  129. If you're having a problem making the ppp connection, look at the
  130. /var/log/messages and or debug file for the output from pppd and
  131. chat.
  132.  
  133. If you want to remove the contents of the /var/log/messages 
  134. and or debug files, because they're getting to big. 
  135.  
  136. ~# ppp-go -r   
  137.  
  138. When 'chat' sends the modem init string that's in /etc/ppp/pppscript 
  139. to your modem you should get OK from the modem, if you don't get OK
  140. then maybe you need to change the init string.
  141.  
  142. AT&FW1H0   <-Modem init string.)
  143. OK
  144.  
  145. Linux has no support for Winmodems, if you have one of these you
  146. won't be able to use it on linux.
  147.  
  148. Linux does support (p)lug (n) (p)lay modems, but you may need help 
  149. from 'isapnptools' to get your pnp modem working properly on linux.
  150.  
  151. You can get a compiled elf version of isapnptools from here.
  152. It's staticly linked so it should work on a libc5 or libc6 
  153. linux elf system.
  154.  
  155. ftp://ftp.tux.org/pub/people/kent-robotti/doslinux/modules
  156. isapnptools-1.13.tar.gz
  157.  
  158. Do this below to install it on your system, it's packed relative to /,
  159. so don't forget the / at the end.
  160.  
  161. ~# tar xzvfC isapnptools-1.13.tar.gz / 
  162.  
  163. This is the first thing you have to do.
  164.  
  165. ~# pnpdump > /etc/isapnp.conf
  166.  
  167. Take a look at /etc/isapnp.conf to see if your pnp modem was found, and
  168. what IRQ etc. it was found on.
  169.  
  170. ~# man isapnp        <-Man pages for the isapnptools package.)
  171.  # man isapnp.conf   <-You have to read this to know how to configure
  172.  # man pnpdump         the /etc/isapnp.conf file.
  173.  
  174. ~# isapnp /etc/isapnp.conf   <-After you configuresd the /etc/isapnp.conf 
  175.                                file.)
  176.  
  177. Usally when you boot your system the setserial script 
  178. /etc/rc.d/rc.serial is run and your modem is recognized 
  179. by setserial.
  180.  
  181. The script "rc.serial" may be called something else and or be in
  182. another directory, it depends on what linux system you have i.e. 
  183. slackware redhat debian etc.
  184.  
  185. Run setserial for your modem to see if it's detected correctly, because
  186. if setserial can't detect your modem correctly then nothing will.
  187.  
  188. I don't have a pnp modem so there was no problem getting it detected 
  189. correctly by setserial, i have a 28.8 modem on /dev/cua1 which 
  190. /dev/modem is a symbolic link to.
  191.  
  192. ~# setserial -v /dev/modem auto_irq skip_test autoconfig
  193.   
  194. /dev/modem, UART: 16550A, Port: 0x02f8, IRQ: 3
  195.  
  196. There's a option in the pppsetup script for speeds higher than
  197. 115200 for the modem, but usually pppd only supports speeds as 
  198. high as 115200, some patched versions of pppd will support higher 
  199. speeds, if you don't have such a version of pppd don't chose a
  200. speed higher than 115200. 
  201.  
  202. If you get this message when you start pppd "speed ? not supported",
  203. your version of pppd only supports modem speeds as high as 115200, 
  204. put 115200 or less in the /etc/ppp/options file.
  205.  
  206. ppp-2.3.3 or later supports higher speeds i.e. 230400 and 460800.
  207.  
  208. =============================================================================
  209. You can get the latest version of ppp from the home site of ppp.
  210.  
  211. ftp://cs.anu.edu.au/pub/software/ppp   <-Home site.)
  212.  
  213. ppp-2.3.3.tar.gz etc.                    
  214. =============================================================================
  215.  
  216. You don't really need the latest version of ppp, the one you have on your
  217. system should be fine, but if you do get and compile the latest version 
  218. of ppp, you'll have to compile your kernel source in /usr/src/linux also, 
  219. or at least the ppp module part.
  220.  
  221. See the ppp-compile.txt for guidance in compiling ppp as a module.
  222.  
  223. You may also want to get and read these docs.
  224.  
  225. ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO "PPP-HOWTO"
  226. ftp://sunsite.unc.edu/pub/Linux/docs/faqs/PPP-FAQ "PPP-FAQ"
  227.  
  228. End... (2-22-98)
  229. ==============================================================================
  230.  
  231.  
  232.  
  233.